/*package com.mycinema.dao.impl;
import org.apache.ibatis.session.SqlSession;

import java.util.ArrayList;
import java.util.List;
import com.mycinema.entity.Category;
import com.mycinema.dao.*;
public class CategoryDaoImpl implements CategoryDao{

	public List<Category> getAll() {
	  List<Category> list=new ArrayList<Category>();
	  SqlSession session=null;
	  try{
		  session=MyBatisUtil.openSession();
		  list=session.selectList("getAll");
	  }catch(Exception e){
		  e.printStackTrace();
	  }
	  finally{
		  if(session!=null){
			  session.close();
		  }
	  }
		return list;
	}

	public Category getById(int id) {
		
		return null;
	}

}*/
